package study.source.common.util;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class GmailSmtpAuthenticator extends Authenticator {
	
	private String id = null;
	private String passwd = null;
	
	public GmailSmtpAuthenticator(String id, String passwd) {
		this.id = id;
		this.passwd = passwd;
	}
	
	protected PasswordAuthentication getPasswordAuthentication(){
		return new PasswordAuthentication(id, passwd);
	}

}
